package com.livesource.client.web.liveSource;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * 
 * @UserInterface
 */
public class WhatIsLiveSource extends VerticalPanel {

	public WhatIsLiveSource() {

		this.setBorderWidth(1);

		VerticalPanel vpBlog = new VerticalPanel();

		vpBlog.setWidth("300px");

		vpBlog.setSpacing(30);

		vpBlog.add(whatIsLiveSourceText());

		this.add(vpBlog);
	}

	private VerticalPanel whatIsLiveSourceText() {

		VerticalPanel vp = new VerticalPanel();

		vp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		HTML demovideo = new HTML(
				"<a href='http://www.screencast-o-matic.com/watch/cX6oVdTPZ' "
						+ "target=_blank>DEMO VIDEO</a><br>");

		vp.add(demovideo);

		HTML screenshots = new HTML(
				"<a href='http://golivesource.blogspot.com/2011/01/livesource-screenshots.html' "
						+ "target=_blank>SCREENSHOTS</a><br>");

		vp.add(screenshots);

		HTML faq = new HTML(
				"<a href='http://golivesource.blogspot.com/2011/01/livesource-screenshots.html' "
						+ "target=_blank>F.A.Q.</a><br><br>");

		vp.add(faq);

		vp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

		HTML htmlDescription = new HTML(
				"LiveSource is a Web Toolkit that ensures "
						+ "the source code of your software project "
						+ "will no longer be hidden behind a complex technological lawyer, "
						+ "but instead, will be online translated and understood by the programmers "
						+ "and non-programmers of your development team.");

		vp.add(htmlDescription);

		HTML survey = new HTML(
				"<br><a href='http://www.surveymonkey.com/s/63GQJYS' target=_blank>"
						+ "Help LiveSource by filling out this short SURVEY!</a>");

		vp.add(survey);

		return vp;
	}
}
